import 'dart:ui';

import 'package:flutter_graphics_view/src/context/scene_state_context.dart';

class SceneStateReader {
  final SceneStateContext sceneStateContext;

  SceneStateReader(this.sceneStateContext);

  Offset get position => sceneStateContext.position;

  double get scale => sceneStateContext.scale;

  double get mouseScaleSpeed => sceneStateContext.mouseScaleSpeed;

  double get maxScale => sceneStateContext.maxScale;

  double get minScale => sceneStateContext.minScale;

  Color get color => sceneStateContext.color;

  Offset fromSceneCoordinates(Offset position) {
    return sceneStateContext.fromSceneCoordinates(position);
  }

  Offset toSceneCoordinates(Offset position) {
    return sceneStateContext.toSceneCoordinates(position);
  }
}
